package com.shipin.shangchuan.Lambda;

public class Demo01Runnable {

    public static void main(String[] args) {
        RunnableImpl r0 = new RunnableImpl();
        Thread t = new Thread(r0);
        t.start();

        Runnable r = new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName() + "新线程创建了");
            }
        };

        new Thread(r).start();


    }
}
